package com.yue.jersey.public_jersey.resource;

import org.springframework.stereotype.Component;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

/**
 * 功能描述: TODO <br/>
 * 创建时间: 2016/11/23<br/>
 *
 * @author QiuYang
 */
@Path("hello")
@Component
public class HelloWorld {

    @GET
    @Produces(MediaType.TEXT_PLAIN)
    public String hello(){
        return "hello world!";
    }
}
